Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return on 2 lines #1

Open
guigeek208 opened this issue Jul 6, 2015 · 1 comment
Open

return on 2 lines #1

guigeek208 opened this issue Jul 6, 2015 · 1 comment

Comments

@guigeek208
Copy link

Hi,
thanks for your script it worked perfecly but the return of command is on 2 lines like following :./check_cisco_ucs -H x.x.x.x. -t class -q storageLocalDisk -a "id pdStatus driveSerialNumber" -e Online -u login -p password
OK - Cisco UCS storageLocalDisk (id,pdStatus,driveSerialNumber)
1,Online,S0MXXXXX
2,Online,S0MYYYYY (2 of 2 ok)

So i can't see the second and third lines on nagios.
Thanks !

@hgrimm
Copy link
Owner

hgrimm commented Jul 7, 2015

hallo
I made a change in the last update to use multiple lines of output instead
of one line output. Now i'm thinking to add an other flag to the plugin to
decide if you want single or multiline output. I let you now if i have done
that change.

see also section "Plugin Output Spec" in
http://nagios.sourceforge.net/docs/nagioscore/3/en/pluginapi.html
best regards,
Herwig

2015-07-07 1:15 GMT+02:00 Guillaume Roche [email protected]:

Hi,
thanks for your script it worked perfecly but the return of command is on
2 lines like following :./check_cisco_ucs -H x.x.x.x. -t class -q
storageLocalDisk -a "id pdStatus driveSerialNumber" -e Online -u login -p
password
OK - Cisco UCS storageLocalDisk (id,pdStatus,driveSerialNumber)
1,Online,S0MXXXXX
2,Online,S0MYYYYY (2 of 2 ok)

So i can't see the second and third lines on nagios.
Thanks !


Reply to this email directly or view it on GitHub
#1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants